eKOK Dokumentacja Integracyjna
0.4.0 - draft Poland flag

Profil zasobu: PLeKOKConsent

Logiczny url: https://ezdrowie.gov.pl/ekok/fhir/StructureDefinition/pl-ekok-consent Wersja: 0.4.0
Active z dnia 2026-02-16 Nazwa: PLeKOKConsent

Profil zasobu zawierający zakres danych dotyczący zgody pacjenta na leczenie (zabiegi i operacje) wykonywane w ramach Karty Opieki Kardiologicznej.

Usages:

  • This Profile is not used by any profiles in this Implementation Guide

You can also check for usages in the FHIR IG Statistics

Profil

Opis sposobu prezentacji profilu ujęty jest w specyfikacji standardu FHIR.

Struktura bazuje na Consent

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Consent 0..* Consent A healthcare consumer's choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time
... id 0..1 id Identyfikator logiczny zasobu (wartość nadawana przez system P1)
... meta 1..1 Meta Metadane zasobu
.... id 0..0
.... extension 0..0
.... versionId 0..1 id Wersja zasobu (wartość ustawiana przez system P1)
.... lastUpdated 0..1 instant Data aktualizacji zasobu (wartość ustawiana przez system P1)
.... source 0..1 uri Identyfikator źródła zasobu (wartość ustawiana przez system, przy rejestracji lub aktualizacji zasobu)
.... profile 1..1 canonical(StructureDefinition) PLeKOKConsent
Fixed Value: https://ezdrowie.gov.pl/ekok/fhir/StructureDefinition/pl-ekok-consent
.... tag 0..0
... implicitRules 0..1 uri Wersja systemu (wartość ustawiana przez system P1)
... text 0..0
... contained 0..0
... modifierExtension 0..0
... identifier 0..0
... status 1..1 code Status zgody. Przyjmuje wartości 'active' (zgoda aktywna), 'rejected' - nastąpiła odmowa zgody przez pacjenta, 'inactive' (zgoda nieaktywna, np. została zastąpiona inną zgodą lub wygasła jej ważność)
Binding: PLeKOKConsentStatusVS (required)
... scope 1..1 CodeableConcept Rodzaj zgody - zgoda na leczenie (zabiegi i operacje)
.... id 0..0
.... extension 0..0
.... coding 1..1 Coding Code defined by a terminology system
..... extension 0..0
..... system 1..1 uri System kodowania
Fixed Value: http://terminology.hl7.org/CodeSystem/consentscope
..... version 0..0
..... code 1..1 code Kod
Fixed Value: treatment
..... display 0..0
..... userSelected 0..0
.... text 0..0
... category 1..1 CodeableConcept Typ dokumentu zgody (LOINC 59284-0) - Zgoda pacjenta na wykonywanie zabiegów i operacji
.... id 0..0
.... extension 0..0
.... coding 1..1 Coding Code defined by a terminology system
..... extension 0..0
..... system 1..1 uri System kodowania
Fixed Value: http://loinc.org
..... version 0..0
..... code 1..1 code Kod
Fixed Value: 59284-0
..... display 0..0
..... userSelected 0..0
.... text 0..0
... patient 1..1 Reference(Patient) Dane pacjenta
.... id 0..0
.... extension 0..0
.... reference 1..1 string Referencja do zasobu Patient
.... type 1..1 uri Typ zasobu z danymi pacjenta (Patient)
Fixed Value: Patient
.... identifier 0..0
.... display 0..0
... dateTime 1..1 dateTime Data zarejestrowania zgody.
... Slices for performer 1..1 Reference(Organization | Patient | Practitioner | RelatedPerson | PractitionerRole) Who is agreeing to the policy and rules
Slice: Unordered, Closed by value:type
.... performer:patient 0..1 Reference(Patient) Dane pacjenta
..... id 0..0
..... extension 0..0
..... reference 1..1 string Referencja do zasobu Patient
..... type 1..1 uri Typ zasobu z danymi pacjenta (Patient)
Fixed Value: Patient
..... identifier 0..0
..... display 0..0
.... performer:relatedPerson 0..1 Reference(RelatedPerson) Dane Pełnomocnika/opiekuna pacjenta
..... id 0..0
..... extension 0..0
..... reference 1..1 string Referencja do zasobu RelatedPerson
..... type 1..1 uri Typ zasobu z danymi pełnomocnika/opiekuna (RelatedPerson)
Fixed Value: RelatedPerson
..... identifier 0..0
..... display 0..0
... organization 1..1 Reference(Organization) Podmiot pozyskujący i przechowujący zgodę, np. szpital w którym pacjent podpisał zgodę.
.... id 0..0
.... reference 0..0
.... type 0..0
.... identifier 1..1 Identifier Identyfikator świadczeniodawcy
..... id 0..0
..... extension 0..0
..... use 0..0
..... type 0..0
..... system 1..1 uri OID systemu identyfikacji świadczeniodawcy
..... value 1..1 string Identyfikator świadczeniodawcy
..... period 0..0
..... assigner 0..0
.... display 1..1 string Nazwa świadczeniodawcy
... source[x] 0..0
... policy 0..0
... policyRule 1..1 CodeableConcept Model wyrażania zgody lub sprzeciwu. Wymaga się użycia wartości OPT-IN, tj. domniemania braku zgody i wymagania jawnego wyrażenia zgody pacjenta.
.... id 0..0
.... extension 0..0
.... coding 1..1 Coding Code defined by a terminology system
..... extension 0..0
..... system 1..1 uri System kodowania
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
..... version 0..0
..... code 1..1 code Kod
Fixed Value: OPTIN
..... display 0..0
..... userSelected 0..0
.... text 0..0
... verification 0..0
... provision 0..0

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Consent.status Base required PLeKOKConsentStatusVS 📦0.4.0 This IG
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Consent C 0..* Consent A healthcare consumer's choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time
Constraints: ppc-1, ppc-2, ppc-3, ppc-4, ppc-5
... id Σ 0..1 id Identyfikator logiczny zasobu (wartość nadawana przez system P1)
... meta Σ 1..1 Meta Metadane zasobu
.... extension 0..0
.... versionId Σ 0..1 id Wersja zasobu (wartość ustawiana przez system P1)
.... lastUpdated Σ 0..1 instant Data aktualizacji zasobu (wartość ustawiana przez system P1)
.... source Σ 0..1 uri Identyfikator źródła zasobu (wartość ustawiana przez system, przy rejestracji lub aktualizacji zasobu)
.... profile Σ 1..1 canonical(StructureDefinition) PLeKOKConsent

Fixed Value: https://ezdrowie.gov.pl/ekok/fhir/StructureDefinition/pl-ekok-consent
... implicitRules ?!Σ 0..1 uri Wersja systemu (wartość ustawiana przez system P1)
... status ?!Σ 1..1 code Status zgody. Przyjmuje wartości 'active' (zgoda aktywna), 'rejected' - nastąpiła odmowa zgody przez pacjenta, 'inactive' (zgoda nieaktywna, np. została zastąpiona inną zgodą lub wygasła jej ważność)
Binding: PLeKOKConsentStatusVS (required)
... scope ?!Σ 1..1 CodeableConcept Rodzaj zgody - zgoda na leczenie (zabiegi i operacje)
Binding: ConsentScopeCodes (extensible): The four anticipated uses for the Consent Resource.
.... extension 0..0
.... coding Σ 1..1 Coding Code defined by a terminology system
..... extension 0..0
..... system Σ 1..1 uri System kodowania
Fixed Value: http://terminology.hl7.org/CodeSystem/consentscope
..... code Σ 1..1 code Kod
Fixed Value: treatment
... category Σ 1..1 CodeableConcept Typ dokumentu zgody (LOINC 59284-0) - Zgoda pacjenta na wykonywanie zabiegów i operacji
Binding: ConsentCategoryCodes (extensible): A classification of the type of consents found in a consent statement.
.... extension 0..0
.... coding Σ 1..1 Coding Code defined by a terminology system
..... extension 0..0
..... system Σ 1..1 uri System kodowania
Fixed Value: http://loinc.org
..... code Σ 1..1 code Kod
Fixed Value: 59284-0
... patient Σ 1..1 Reference(Patient) Dane pacjenta
.... extension 0..0
.... reference ΣC 1..1 string Referencja do zasobu Patient
.... type Σ 1..1 uri Typ zasobu z danymi pacjenta (Patient)
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Fixed Value: Patient
... dateTime Σ 1..1 dateTime Data zarejestrowania zgody.
... Slices for performer Σ 1..1 Reference(Organization | Patient | Practitioner | RelatedPerson | PractitionerRole) Who is agreeing to the policy and rules
Slice: Unordered, Closed by value:type
.... performer:patient Σ 0..1 Reference(Patient) Dane pacjenta
..... extension 0..0
..... reference ΣC 1..1 string Referencja do zasobu Patient
..... type Σ 1..1 uri Typ zasobu z danymi pacjenta (Patient)
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Fixed Value: Patient
.... performer:relatedPerson Σ 0..1 Reference(RelatedPerson) Dane Pełnomocnika/opiekuna pacjenta
..... extension 0..0
..... reference ΣC 1..1 string Referencja do zasobu RelatedPerson
..... type Σ 1..1 uri Typ zasobu z danymi pełnomocnika/opiekuna (RelatedPerson)
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Fixed Value: RelatedPerson
... organization Σ 1..1 Reference(Organization) Podmiot pozyskujący i przechowujący zgodę, np. szpital w którym pacjent podpisał zgodę.
.... identifier Σ 1..1 Identifier Identyfikator świadczeniodawcy
..... extension 0..0
..... system Σ 1..1 uri OID systemu identyfikacji świadczeniodawcy
Example General: http://www.acme.com/identifiers/patient
..... value Σ 1..1 string Identyfikator świadczeniodawcy
Example General: 123456
.... display Σ 1..1 string Nazwa świadczeniodawcy
... policyRule ΣC 1..1 CodeableConcept Model wyrażania zgody lub sprzeciwu. Wymaga się użycia wartości OPT-IN, tj. domniemania braku zgody i wymagania jawnego wyrażenia zgody pacjenta.
Binding: ConsentPolicyRuleCodes (extensible): Regulatory policy examples.
.... extension 0..0
.... coding Σ 1..1 Coding Code defined by a terminology system
..... extension 0..0
..... system Σ 1..1 uri System kodowania
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
..... code Σ 1..1 code Kod
Fixed Value: OPTIN

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Consent.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Consent.status Base required PLeKOKConsentStatusVS 📦0.4.0 This IG
Consent.scope Base extensible Consent Scope Codes 📍4.0.1 FHIR Std.
Consent.category Base extensible Consent Category Codes 📍4.0.1 FHIR Std.
Consent.patient.type Base extensible ResourceType 📍4.0.1 FHIR Std.
Consent.performer:patient.​type Base extensible ResourceType 📍4.0.1 FHIR Std.
Consent.performer:relatedPerson.​type Base extensible ResourceType 📍4.0.1 FHIR Std.
Consent.policyRule Base extensible Consent PolicyRule Codes 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Consent If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Consent If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error Consent If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error Consent If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Consent A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
ppc-1 error Consent Either a Policy or PolicyRule policy.exists() or policyRule.exists()
ppc-2 error Consent IF Scope=privacy, there must be a patient patient.exists() or scope.coding.where(system='something' and code='patient-privacy').exists().not()
ppc-3 error Consent IF Scope=research, there must be a patient patient.exists() or scope.coding.where(system='something' and code='research').exists().not()
ppc-4 error Consent IF Scope=adr, there must be a patient patient.exists() or scope.coding.where(system='something' and code='adr').exists().not()
ppc-5 error Consent IF Scope=treatment, there must be a patient patient.exists() or scope.coding.where(system='something' and code='treatment').exists().not()
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Consent C 0..* Consent A healthcare consumer's choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time
Constraints: ppc-1, ppc-2, ppc-3, ppc-4, ppc-5
... id Σ 0..1 id Identyfikator logiczny zasobu (wartość nadawana przez system P1)
... meta Σ 1..1 Meta Metadane zasobu
.... extension 0..0
.... versionId Σ 0..1 id Wersja zasobu (wartość ustawiana przez system P1)
.... lastUpdated Σ 0..1 instant Data aktualizacji zasobu (wartość ustawiana przez system P1)
.... source Σ 0..1 uri Identyfikator źródła zasobu (wartość ustawiana przez system, przy rejestracji lub aktualizacji zasobu)
.... profile Σ 1..1 canonical(StructureDefinition) PLeKOKConsent

Fixed Value: https://ezdrowie.gov.pl/ekok/fhir/StructureDefinition/pl-ekok-consent
.... security Σ 0..* Coding Security Labels applied to this resource
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
... implicitRules ?!Σ 0..1 uri Wersja systemu (wartość ustawiana przez system P1)
... extension 0..* Extension Additional content defined by implementations
... status ?!Σ 1..1 code Status zgody. Przyjmuje wartości 'active' (zgoda aktywna), 'rejected' - nastąpiła odmowa zgody przez pacjenta, 'inactive' (zgoda nieaktywna, np. została zastąpiona inną zgodą lub wygasła jej ważność)
Binding: PLeKOKConsentStatusVS (required)
... scope ?!Σ 1..1 CodeableConcept Rodzaj zgody - zgoda na leczenie (zabiegi i operacje)
Binding: ConsentScopeCodes (extensible): The four anticipated uses for the Consent Resource.
.... extension 0..0
.... coding Σ 1..1 Coding Code defined by a terminology system
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..0
..... system Σ 1..1 uri System kodowania
Fixed Value: http://terminology.hl7.org/CodeSystem/consentscope
..... code Σ 1..1 code Kod
Fixed Value: treatment
... category Σ 1..1 CodeableConcept Typ dokumentu zgody (LOINC 59284-0) - Zgoda pacjenta na wykonywanie zabiegów i operacji
Binding: ConsentCategoryCodes (extensible): A classification of the type of consents found in a consent statement.
.... extension 0..0
.... coding Σ 1..1 Coding Code defined by a terminology system
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..0
..... system Σ 1..1 uri System kodowania
Fixed Value: http://loinc.org
..... code Σ 1..1 code Kod
Fixed Value: 59284-0
... patient Σ 1..1 Reference(Patient) Dane pacjenta
.... extension 0..0
.... reference ΣC 1..1 string Referencja do zasobu Patient
.... type Σ 1..1 uri Typ zasobu z danymi pacjenta (Patient)
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Fixed Value: Patient
... dateTime Σ 1..1 dateTime Data zarejestrowania zgody.
... Slices for performer Σ 1..1 Reference(Organization | Patient | Practitioner | RelatedPerson | PractitionerRole) Who is agreeing to the policy and rules
Slice: Unordered, Closed by value:type
.... performer:patient Σ 0..1 Reference(Patient) Dane pacjenta
..... extension 0..0
..... reference ΣC 1..1 string Referencja do zasobu Patient
..... type Σ 1..1 uri Typ zasobu z danymi pacjenta (Patient)
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Fixed Value: Patient
.... performer:relatedPerson Σ 0..1 Reference(RelatedPerson) Dane Pełnomocnika/opiekuna pacjenta
..... extension 0..0
..... reference ΣC 1..1 string Referencja do zasobu RelatedPerson
..... type Σ 1..1 uri Typ zasobu z danymi pełnomocnika/opiekuna (RelatedPerson)
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Fixed Value: RelatedPerson
... organization Σ 1..1 Reference(Organization) Podmiot pozyskujący i przechowujący zgodę, np. szpital w którym pacjent podpisał zgodę.
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... identifier Σ 1..1 Identifier Identyfikator świadczeniodawcy
..... extension 0..0
..... system Σ 1..1 uri OID systemu identyfikacji świadczeniodawcy
Example General: http://www.acme.com/identifiers/patient
..... value Σ 1..1 string Identyfikator świadczeniodawcy
Example General: 123456
.... display Σ 1..1 string Nazwa świadczeniodawcy
... policyRule ΣC 1..1 CodeableConcept Model wyrażania zgody lub sprzeciwu. Wymaga się użycia wartości OPT-IN, tj. domniemania braku zgody i wymagania jawnego wyrażenia zgody pacjenta.
Binding: ConsentPolicyRuleCodes (extensible): Regulatory policy examples.
.... extension 0..0
.... coding Σ 1..1 Coding Code defined by a terminology system
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..0
..... system Σ 1..1 uri System kodowania
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
..... code Σ 1..1 code Kod
Fixed Value: OPTIN

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Consent.meta.security Base extensible SecurityLabels 📍4.0.1 FHIR Std.
Consent.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Consent.status Base required PLeKOKConsentStatusVS 📦0.4.0 This IG
Consent.scope Base extensible Consent Scope Codes 📍4.0.1 FHIR Std.
Consent.category Base extensible Consent Category Codes 📍4.0.1 FHIR Std.
Consent.patient.type Base extensible ResourceType 📍4.0.1 FHIR Std.
Consent.performer:patient.​type Base extensible ResourceType 📍4.0.1 FHIR Std.
Consent.performer:relatedPerson.​type Base extensible ResourceType 📍4.0.1 FHIR Std.
Consent.policyRule Base extensible Consent PolicyRule Codes 📍4.0.1 FHIR Std.
Consent.provision.type Base required ConsentProvisionType 📍4.0.1 FHIR Std.
Consent.provision.actor.​role Base extensible SecurityRoleType 📍4.0.1 FHIR Std.
Consent.provision.action Base example Consent Action Codes 📍4.0.1 FHIR Std.
Consent.provision.securityLabel Base extensible SecurityLabels 📍4.0.1 FHIR Std.
Consent.provision.purpose Base extensible PurposeOfUse 📦3.1.0 THO v7.0
Consent.provision.class Base extensible Consent Content Class 📍4.0.1 FHIR Std.
Consent.provision.code Base example Consent Content Codes 📍4.0.1 FHIR Std.
Consent.provision.data.​meaning Base required ConsentDataMeaning 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Consent If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Consent If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error Consent If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error Consent If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Consent A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
ppc-1 error Consent Either a Policy or PolicyRule policy.exists() or policyRule.exists()
ppc-2 error Consent IF Scope=privacy, there must be a patient patient.exists() or scope.coding.where(system='something' and code='patient-privacy').exists().not()
ppc-3 error Consent IF Scope=research, there must be a patient patient.exists() or scope.coding.where(system='something' and code='research').exists().not()
ppc-4 error Consent IF Scope=adr, there must be a patient patient.exists() or scope.coding.where(system='something' and code='adr').exists().not()
ppc-5 error Consent IF Scope=treatment, there must be a patient patient.exists() or scope.coding.where(system='something' and code='treatment').exists().not()

Struktura bazuje na Consent

Summary

Mandatory: 22 elements(4 nested mandatory elements)
Fixed: 10 elements
Prohibited: 53 elements

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of Consent.performer (Closed)

Widok Differential

Struktura bazuje na Consent

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Consent 0..* Consent A healthcare consumer's choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time
... id 0..1 id Identyfikator logiczny zasobu (wartość nadawana przez system P1)
... meta 1..1 Meta Metadane zasobu
.... id 0..0
.... extension 0..0
.... versionId 0..1 id Wersja zasobu (wartość ustawiana przez system P1)
.... lastUpdated 0..1 instant Data aktualizacji zasobu (wartość ustawiana przez system P1)
.... source 0..1 uri Identyfikator źródła zasobu (wartość ustawiana przez system, przy rejestracji lub aktualizacji zasobu)
.... profile 1..1 canonical(StructureDefinition) PLeKOKConsent
Fixed Value: https://ezdrowie.gov.pl/ekok/fhir/StructureDefinition/pl-ekok-consent
.... tag 0..0
... implicitRules 0..1 uri Wersja systemu (wartość ustawiana przez system P1)
... text 0..0
... contained 0..0
... modifierExtension 0..0
... identifier 0..0
... status 1..1 code Status zgody. Przyjmuje wartości 'active' (zgoda aktywna), 'rejected' - nastąpiła odmowa zgody przez pacjenta, 'inactive' (zgoda nieaktywna, np. została zastąpiona inną zgodą lub wygasła jej ważność)
Binding: PLeKOKConsentStatusVS (required)
... scope 1..1 CodeableConcept Rodzaj zgody - zgoda na leczenie (zabiegi i operacje)
.... id 0..0
.... extension 0..0
.... coding 1..1 Coding Code defined by a terminology system
..... extension 0..0
..... system 1..1 uri System kodowania
Fixed Value: http://terminology.hl7.org/CodeSystem/consentscope
..... version 0..0
..... code 1..1 code Kod
Fixed Value: treatment
..... display 0..0
..... userSelected 0..0
.... text 0..0
... category 1..1 CodeableConcept Typ dokumentu zgody (LOINC 59284-0) - Zgoda pacjenta na wykonywanie zabiegów i operacji
.... id 0..0
.... extension 0..0
.... coding 1..1 Coding Code defined by a terminology system
..... extension 0..0
..... system 1..1 uri System kodowania
Fixed Value: http://loinc.org
..... version 0..0
..... code 1..1 code Kod
Fixed Value: 59284-0
..... display 0..0
..... userSelected 0..0
.... text 0..0
... patient 1..1 Reference(Patient) Dane pacjenta
.... id 0..0
.... extension 0..0
.... reference 1..1 string Referencja do zasobu Patient
.... type 1..1 uri Typ zasobu z danymi pacjenta (Patient)
Fixed Value: Patient
.... identifier 0..0
.... display 0..0
... dateTime 1..1 dateTime Data zarejestrowania zgody.
... Slices for performer 1..1 Reference(Organization | Patient | Practitioner | RelatedPerson | PractitionerRole) Who is agreeing to the policy and rules
Slice: Unordered, Closed by value:type
.... performer:patient 0..1 Reference(Patient) Dane pacjenta
..... id 0..0
..... extension 0..0
..... reference 1..1 string Referencja do zasobu Patient
..... type 1..1 uri Typ zasobu z danymi pacjenta (Patient)
Fixed Value: Patient
..... identifier 0..0
..... display 0..0
.... performer:relatedPerson 0..1 Reference(RelatedPerson) Dane Pełnomocnika/opiekuna pacjenta
..... id 0..0
..... extension 0..0
..... reference 1..1 string Referencja do zasobu RelatedPerson
..... type 1..1 uri Typ zasobu z danymi pełnomocnika/opiekuna (RelatedPerson)
Fixed Value: RelatedPerson
..... identifier 0..0
..... display 0..0
... organization 1..1 Reference(Organization) Podmiot pozyskujący i przechowujący zgodę, np. szpital w którym pacjent podpisał zgodę.
.... id 0..0
.... reference 0..0
.... type 0..0
.... identifier 1..1 Identifier Identyfikator świadczeniodawcy
..... id 0..0
..... extension 0..0
..... use 0..0
..... type 0..0
..... system 1..1 uri OID systemu identyfikacji świadczeniodawcy
..... value 1..1 string Identyfikator świadczeniodawcy
..... period 0..0
..... assigner 0..0
.... display 1..1 string Nazwa świadczeniodawcy
... source[x] 0..0
... policy 0..0
... policyRule 1..1 CodeableConcept Model wyrażania zgody lub sprzeciwu. Wymaga się użycia wartości OPT-IN, tj. domniemania braku zgody i wymagania jawnego wyrażenia zgody pacjenta.
.... id 0..0
.... extension 0..0
.... coding 1..1 Coding Code defined by a terminology system
..... extension 0..0
..... system 1..1 uri System kodowania
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
..... version 0..0
..... code 1..1 code Kod
Fixed Value: OPTIN
..... display 0..0
..... userSelected 0..0
.... text 0..0
... verification 0..0
... provision 0..0

doco Documentation for this format

Terminology Bindings (Differential)

Path Status Usage ValueSet Version Source
Consent.status Base required PLeKOKConsentStatusVS 📦0.4.0 This IG

Widok kluczowych elementów

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Consent C 0..* Consent A healthcare consumer's choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time
Constraints: ppc-1, ppc-2, ppc-3, ppc-4, ppc-5
... id Σ 0..1 id Identyfikator logiczny zasobu (wartość nadawana przez system P1)
... meta Σ 1..1 Meta Metadane zasobu
.... extension 0..0
.... versionId Σ 0..1 id Wersja zasobu (wartość ustawiana przez system P1)
.... lastUpdated Σ 0..1 instant Data aktualizacji zasobu (wartość ustawiana przez system P1)
.... source Σ 0..1 uri Identyfikator źródła zasobu (wartość ustawiana przez system, przy rejestracji lub aktualizacji zasobu)
.... profile Σ 1..1 canonical(StructureDefinition) PLeKOKConsent

Fixed Value: https://ezdrowie.gov.pl/ekok/fhir/StructureDefinition/pl-ekok-consent
... implicitRules ?!Σ 0..1 uri Wersja systemu (wartość ustawiana przez system P1)
... status ?!Σ 1..1 code Status zgody. Przyjmuje wartości 'active' (zgoda aktywna), 'rejected' - nastąpiła odmowa zgody przez pacjenta, 'inactive' (zgoda nieaktywna, np. została zastąpiona inną zgodą lub wygasła jej ważność)
Binding: PLeKOKConsentStatusVS (required)
... scope ?!Σ 1..1 CodeableConcept Rodzaj zgody - zgoda na leczenie (zabiegi i operacje)
Binding: ConsentScopeCodes (extensible): The four anticipated uses for the Consent Resource.
.... extension 0..0
.... coding Σ 1..1 Coding Code defined by a terminology system
..... extension 0..0
..... system Σ 1..1 uri System kodowania
Fixed Value: http://terminology.hl7.org/CodeSystem/consentscope
..... code Σ 1..1 code Kod
Fixed Value: treatment
... category Σ 1..1 CodeableConcept Typ dokumentu zgody (LOINC 59284-0) - Zgoda pacjenta na wykonywanie zabiegów i operacji
Binding: ConsentCategoryCodes (extensible): A classification of the type of consents found in a consent statement.
.... extension 0..0
.... coding Σ 1..1 Coding Code defined by a terminology system
..... extension 0..0
..... system Σ 1..1 uri System kodowania
Fixed Value: http://loinc.org
..... code Σ 1..1 code Kod
Fixed Value: 59284-0
... patient Σ 1..1 Reference(Patient) Dane pacjenta
.... extension 0..0
.... reference ΣC 1..1 string Referencja do zasobu Patient
.... type Σ 1..1 uri Typ zasobu z danymi pacjenta (Patient)
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Fixed Value: Patient
... dateTime Σ 1..1 dateTime Data zarejestrowania zgody.
... Slices for performer Σ 1..1 Reference(Organization | Patient | Practitioner | RelatedPerson | PractitionerRole) Who is agreeing to the policy and rules
Slice: Unordered, Closed by value:type
.... performer:patient Σ 0..1 Reference(Patient) Dane pacjenta
..... extension 0..0
..... reference ΣC 1..1 string Referencja do zasobu Patient
..... type Σ 1..1 uri Typ zasobu z danymi pacjenta (Patient)
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Fixed Value: Patient
.... performer:relatedPerson Σ 0..1 Reference(RelatedPerson) Dane Pełnomocnika/opiekuna pacjenta
..... extension 0..0
..... reference ΣC 1..1 string Referencja do zasobu RelatedPerson
..... type Σ 1..1 uri Typ zasobu z danymi pełnomocnika/opiekuna (RelatedPerson)
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Fixed Value: RelatedPerson
... organization Σ 1..1 Reference(Organization) Podmiot pozyskujący i przechowujący zgodę, np. szpital w którym pacjent podpisał zgodę.
.... identifier Σ 1..1 Identifier Identyfikator świadczeniodawcy
..... extension 0..0
..... system Σ 1..1 uri OID systemu identyfikacji świadczeniodawcy
Example General: http://www.acme.com/identifiers/patient
..... value Σ 1..1 string Identyfikator świadczeniodawcy
Example General: 123456
.... display Σ 1..1 string Nazwa świadczeniodawcy
... policyRule ΣC 1..1 CodeableConcept Model wyrażania zgody lub sprzeciwu. Wymaga się użycia wartości OPT-IN, tj. domniemania braku zgody i wymagania jawnego wyrażenia zgody pacjenta.
Binding: ConsentPolicyRuleCodes (extensible): Regulatory policy examples.
.... extension 0..0
.... coding Σ 1..1 Coding Code defined by a terminology system
..... extension 0..0
..... system Σ 1..1 uri System kodowania
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
..... code Σ 1..1 code Kod
Fixed Value: OPTIN

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Consent.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Consent.status Base required PLeKOKConsentStatusVS 📦0.4.0 This IG
Consent.scope Base extensible Consent Scope Codes 📍4.0.1 FHIR Std.
Consent.category Base extensible Consent Category Codes 📍4.0.1 FHIR Std.
Consent.patient.type Base extensible ResourceType 📍4.0.1 FHIR Std.
Consent.performer:patient.​type Base extensible ResourceType 📍4.0.1 FHIR Std.
Consent.performer:relatedPerson.​type Base extensible ResourceType 📍4.0.1 FHIR Std.
Consent.policyRule Base extensible Consent PolicyRule Codes 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Consent If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Consent If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error Consent If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error Consent If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Consent A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
ppc-1 error Consent Either a Policy or PolicyRule policy.exists() or policyRule.exists()
ppc-2 error Consent IF Scope=privacy, there must be a patient patient.exists() or scope.coding.where(system='something' and code='patient-privacy').exists().not()
ppc-3 error Consent IF Scope=research, there must be a patient patient.exists() or scope.coding.where(system='something' and code='research').exists().not()
ppc-4 error Consent IF Scope=adr, there must be a patient patient.exists() or scope.coding.where(system='something' and code='adr').exists().not()
ppc-5 error Consent IF Scope=treatment, there must be a patient patient.exists() or scope.coding.where(system='something' and code='treatment').exists().not()

Widok Snapshot

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. Consent C 0..* Consent A healthcare consumer's choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time
Constraints: ppc-1, ppc-2, ppc-3, ppc-4, ppc-5
... id Σ 0..1 id Identyfikator logiczny zasobu (wartość nadawana przez system P1)
... meta Σ 1..1 Meta Metadane zasobu
.... extension 0..0
.... versionId Σ 0..1 id Wersja zasobu (wartość ustawiana przez system P1)
.... lastUpdated Σ 0..1 instant Data aktualizacji zasobu (wartość ustawiana przez system P1)
.... source Σ 0..1 uri Identyfikator źródła zasobu (wartość ustawiana przez system, przy rejestracji lub aktualizacji zasobu)
.... profile Σ 1..1 canonical(StructureDefinition) PLeKOKConsent

Fixed Value: https://ezdrowie.gov.pl/ekok/fhir/StructureDefinition/pl-ekok-consent
.... security Σ 0..* Coding Security Labels applied to this resource
Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.
... implicitRules ?!Σ 0..1 uri Wersja systemu (wartość ustawiana przez system P1)
... extension 0..* Extension Additional content defined by implementations
... status ?!Σ 1..1 code Status zgody. Przyjmuje wartości 'active' (zgoda aktywna), 'rejected' - nastąpiła odmowa zgody przez pacjenta, 'inactive' (zgoda nieaktywna, np. została zastąpiona inną zgodą lub wygasła jej ważność)
Binding: PLeKOKConsentStatusVS (required)
... scope ?!Σ 1..1 CodeableConcept Rodzaj zgody - zgoda na leczenie (zabiegi i operacje)
Binding: ConsentScopeCodes (extensible): The four anticipated uses for the Consent Resource.
.... extension 0..0
.... coding Σ 1..1 Coding Code defined by a terminology system
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..0
..... system Σ 1..1 uri System kodowania
Fixed Value: http://terminology.hl7.org/CodeSystem/consentscope
..... code Σ 1..1 code Kod
Fixed Value: treatment
... category Σ 1..1 CodeableConcept Typ dokumentu zgody (LOINC 59284-0) - Zgoda pacjenta na wykonywanie zabiegów i operacji
Binding: ConsentCategoryCodes (extensible): A classification of the type of consents found in a consent statement.
.... extension 0..0
.... coding Σ 1..1 Coding Code defined by a terminology system
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..0
..... system Σ 1..1 uri System kodowania
Fixed Value: http://loinc.org
..... code Σ 1..1 code Kod
Fixed Value: 59284-0
... patient Σ 1..1 Reference(Patient) Dane pacjenta
.... extension 0..0
.... reference ΣC 1..1 string Referencja do zasobu Patient
.... type Σ 1..1 uri Typ zasobu z danymi pacjenta (Patient)
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Fixed Value: Patient
... dateTime Σ 1..1 dateTime Data zarejestrowania zgody.
... Slices for performer Σ 1..1 Reference(Organization | Patient | Practitioner | RelatedPerson | PractitionerRole) Who is agreeing to the policy and rules
Slice: Unordered, Closed by value:type
.... performer:patient Σ 0..1 Reference(Patient) Dane pacjenta
..... extension 0..0
..... reference ΣC 1..1 string Referencja do zasobu Patient
..... type Σ 1..1 uri Typ zasobu z danymi pacjenta (Patient)
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Fixed Value: Patient
.... performer:relatedPerson Σ 0..1 Reference(RelatedPerson) Dane Pełnomocnika/opiekuna pacjenta
..... extension 0..0
..... reference ΣC 1..1 string Referencja do zasobu RelatedPerson
..... type Σ 1..1 uri Typ zasobu z danymi pełnomocnika/opiekuna (RelatedPerson)
Binding: ResourceType (extensible): Aa resource (or, for logical models, the URI of the logical model).
Fixed Value: RelatedPerson
... organization Σ 1..1 Reference(Organization) Podmiot pozyskujący i przechowujący zgodę, np. szpital w którym pacjent podpisał zgodę.
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... identifier Σ 1..1 Identifier Identyfikator świadczeniodawcy
..... extension 0..0
..... system Σ 1..1 uri OID systemu identyfikacji świadczeniodawcy
Example General: http://www.acme.com/identifiers/patient
..... value Σ 1..1 string Identyfikator świadczeniodawcy
Example General: 123456
.... display Σ 1..1 string Nazwa świadczeniodawcy
... policyRule ΣC 1..1 CodeableConcept Model wyrażania zgody lub sprzeciwu. Wymaga się użycia wartości OPT-IN, tj. domniemania braku zgody i wymagania jawnego wyrażenia zgody pacjenta.
Binding: ConsentPolicyRuleCodes (extensible): Regulatory policy examples.
.... extension 0..0
.... coding Σ 1..1 Coding Code defined by a terminology system
..... id 0..1 string Unique id for inter-element referencing
..... extension 0..0
..... system Σ 1..1 uri System kodowania
Fixed Value: http://terminology.hl7.org/CodeSystem/v3-ActCode
..... code Σ 1..1 code Kod
Fixed Value: OPTIN

doco Documentation for this format

Terminology Bindings

Path Status Usage ValueSet Version Source
Consent.meta.security Base extensible SecurityLabels 📍4.0.1 FHIR Std.
Consent.language Base preferred Common Languages 📍4.0.1 FHIR Std.
Consent.status Base required PLeKOKConsentStatusVS 📦0.4.0 This IG
Consent.scope Base extensible Consent Scope Codes 📍4.0.1 FHIR Std.
Consent.category Base extensible Consent Category Codes 📍4.0.1 FHIR Std.
Consent.patient.type Base extensible ResourceType 📍4.0.1 FHIR Std.
Consent.performer:patient.​type Base extensible ResourceType 📍4.0.1 FHIR Std.
Consent.performer:relatedPerson.​type Base extensible ResourceType 📍4.0.1 FHIR Std.
Consent.policyRule Base extensible Consent PolicyRule Codes 📍4.0.1 FHIR Std.
Consent.provision.type Base required ConsentProvisionType 📍4.0.1 FHIR Std.
Consent.provision.actor.​role Base extensible SecurityRoleType 📍4.0.1 FHIR Std.
Consent.provision.action Base example Consent Action Codes 📍4.0.1 FHIR Std.
Consent.provision.securityLabel Base extensible SecurityLabels 📍4.0.1 FHIR Std.
Consent.provision.purpose Base extensible PurposeOfUse 📦3.1.0 THO v7.0
Consent.provision.class Base extensible Consent Content Class 📍4.0.1 FHIR Std.
Consent.provision.code Base example Consent Content Codes 📍4.0.1 FHIR Std.
Consent.provision.data.​meaning Base required ConsentDataMeaning 📍4.0.1 FHIR Std.

Constraints

Id Grade Path(s) Description Expression
dom-2 error Consent If the resource is contained in another resource, it SHALL NOT contain nested Resources contained.contained.empty()
dom-3 error Consent If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4 error Consent If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5 error Consent If a resource is contained in another resource, it SHALL NOT have a security label contained.meta.security.empty()
dom-6 best practice Consent A resource should have narrative for robust management text.`div`.exists()
ele-1 error **ALL** elements All FHIR elements must have a @value or children hasValue() or (children().count() > id.count())
ext-1 error **ALL** extensions Must have either extensions or value[x], not both extension.exists() != value.exists()
ppc-1 error Consent Either a Policy or PolicyRule policy.exists() or policyRule.exists()
ppc-2 error Consent IF Scope=privacy, there must be a patient patient.exists() or scope.coding.where(system='something' and code='patient-privacy').exists().not()
ppc-3 error Consent IF Scope=research, there must be a patient patient.exists() or scope.coding.where(system='something' and code='research').exists().not()
ppc-4 error Consent IF Scope=adr, there must be a patient patient.exists() or scope.coding.where(system='something' and code='adr').exists().not()
ppc-5 error Consent IF Scope=treatment, there must be a patient patient.exists() or scope.coding.where(system='something' and code='treatment').exists().not()

Struktura bazuje na Consent

Summary

Mandatory: 22 elements(4 nested mandatory elements)
Fixed: 10 elements
Prohibited: 53 elements

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of Consent.performer (Closed)

 

Inne struktury profilu: CSV, Excel, Schematron